package com.qipay.mapper;

import com.qipay.baas.model.Peizhi;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;

@Mapper
public interface PeizhiMapper {
    @Select({
            "select",
            "id, `content`",
            "from peizhi"
    })
    @Results({
            @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
            @Result(column="content", property="content", jdbcType=JdbcType.VARCHAR)
    })
    Peizhi selectByPrimaryKey();

    @Update({
            "update peizhi",
            "set `id` = #{id,jdbcType=BIGINT},",
            "content = #{content,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(Peizhi record);

}